package com.pt25.base.util;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
public class PageUtil {

    @Data
    public static class PageBase{
        private Long pageNum = 1L;
        private Long pageSize = 10L;
    }

    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    @Data
    public static class PageVo {
        private Object list;
        private Long total;
        @Builder.Default
        private Long pageNum = 1L;
        @Builder.Default
        private Long pageSize = 10L;
    }

}
